package com.lh.entity;

import com.baomidou.mybatisplus.annotation.*;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.lh.commonutils.ordervo.CourseWebVoOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lh
 * @since 2021-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EduCollection对象", description="")
public class EduCollection implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户收藏课程id")
    @TableId(value = "cid", type = IdType.ID_WORKER_STR)
    private String cid;

    @ApiModelProperty(value = "用户id")
    private String userid;

    @ApiModelProperty(value = "课程id")
    private String courseid;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(exist = false)
    private List<CourseWebVoOrder> children=new ArrayList<>();

}
